﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1.0,user-scalable=0">
    <meta content="telephone=no" name="format-detection" />
    <meta name="description" content="">
    <meta name="keywords" content="">
    <title>知识库-搜索</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css">
    <link rel="stylesheet" type="text/css" href="css/global.css">
    <link rel="stylesheet" type="text/css" href="css/media.css">
</head>
<body id="app"> 
    <!-- 头部 -->
    <header class="header" id="header1">
        <a href="asking.html" title="返回" class="icon back"></a>
        <div class="clearfix search-box" onclick="show();">
            <input type="button" class="fl search-btn" >
            <input type="text" id=""  class="search-txt"  placeholder="搜索" value="" maxlength="30">
        </div>
    </header>
    
    <header class="header dn" id="header2">
        <div class="clearfix search-box searchWhite">
            <input type="button" class="fl search-btn" onclick="search('askSearchResult.html');">
            <input type="text" id="searchword" class="search-txt" placeholder="搜索" value="" maxlength="30">
        </div>
        <a href="javascript:void(0);" title="取消" class="text j_cancle">取消</a>
    </header>

    <!-- 搜索 -->
    <section class="padT23 asking" v-cloak>
        <div class="tabCont quesCate bgff borderTS">
            <ul class="clearfix borderspace cateList">
                    <li v-for="info in data"><a href="askList.html?id={{info.id}}&name={{info.name}}&back=askSearch.html" class="textC ell cateDate">{{ info.name }}</a></li>
                </ul>
        </div>
    </section>
    
    <template v-if="addShow==true">
        <div class="cateBoxBg" ></div>
    </template>

    <script type="text/javascript" src="js/lib/jquery.min.js"></script>
    <script type="text/javascript" src="js/lib/vue.js"></script>
    <script type="text/javascript" src="js/lib/global.js"></script>
    <script type="text/javascript" src="js/lib/alert.js"></script>
    <script type="text/javascript" src="js/lib/common.js"></script>
    <script type="text/javascript" src="js/askSearch.js"></script>
    <script type="text/javascript">

        function show(){
            info.addShow = true;
            $("#header1").hide();
            $('#header2,.cateBoxBg').show();
            $("#searchword").focus();
        }
        $('.j_cancle').bind('click',function(){
            $("#header2,.cateBoxBg").hide();
            $("#header1").show();
        });

        $('#searchword').bind('keypress',function(event){
            if(event.keyCode == "13")    {
                search("askSearchResult.html");
            }
        });
       
    </script>


</body>
</html>